<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<tr>

	<td class="td1">变更类型：</td>
	<td class="td2"><form:select path="changeType" cssClass="required"
			items="${types }" itemValue="name" itemLabel="name" />
	</td>
	<td class="td1">分类：</td>
	<td class="td2"><form:hidden path="chgCategoryId" /> <isperp:treeSelector
			url="incident/category/getTree" id="chgCategorySelector"
			name="chgCategoryName" displayValue="${model.chgCategoryName }"
			valueControlId="chgCategoryId" displayValueCssClass="required"></isperp:treeSelector>
	</td>
</tr>

<tr>
	<td class="td1">请求人：</td>
	<td class="td2"><form:hidden path="requester" /> <isperp:departmentUser
			displayValue="${model.requesterName }" valueControlId="requester"
			id="requesterName" name="requesterName"
			displayValueCssClass="required"></isperp:departmentUser>
	</td>

	<td class="td1">请求日期：</td>
	<td class="td2"><form:input path="requestDate" cssClass="required"
			type="datetime" /></td>

</tr>

<tr>

	<td class="td1">优先级：</td>
	<td class="td2"><isperp:dictListSelector id="priorityName"
			items="${prioritys }" name="priorityName" hasEmptyValue="false"
			selectedValue="${model.priorityName }"
			onchangeFunc="resetPriorityName()">
		</isperp:dictListSelector>
	</td>
</tr>
<tr>
	<td class="td1">选择项目：</td>
	<td class="td2" colspan="3"><form:select path="projectId"
			cssClass="required search" items="${projects }" itemValue="id"
			itemLabel="name" data-width="310px" />
	</td>
<tr>
<tr>
	<td class="td1">变更标题：</td>
	<td class="td2" colspan="3"><input id="changeTitle" name="title"
		value="${model.title }" class="required" type="text" maxlength="200"
		style="width:80%">
	</td>
</tr>
<tr>
	<td class="td1">变更原因：</td>
	<td class="td2" colspan="3"><input id="reasonAnalysis"
		name="reasonAnalysis" value="${model.reasonAnalysis }"
		class="required" type="text" maxlength="200" style="width:80%">
	</td>
</tr>
<tr>
	<td class="td1">变更描述：</td>
	<td class="td2" colspan="3"><textarea id="changeDescription"
			class="required" name="description">${model.description }</textarea>
	</td>
</tr>
<tr>
	<td class="td1">附件：</td>
	<td class="td2" colspan="3"><isperp:uploader
			sourceId="${model.id }" id="changeFiles"></isperp:uploader>
	</td>
</tr>